import Taro, { Component } from '@tarojs/taro'
import {View, Text} from '@tarojs/components'
import { IconFont } from '@components'
import jump from '@utils/jump'
import './index.scss'

export default class Search extends Component {
  static defaultProps = {
  }

  handleSearch = () => {
    jump({
      url: '/pages/search/search'
    })
  }

  render () {
    return (
      <View className='search'>
        <View className='search-wrap' onClick={this.handleSearch}>
          <IconFont size={30} name='search' />
          <Text className='search-txt'>
            搜索商品
          </Text>
        </View>
      </View>
    )
  }
}

